{{ define "main" }}
<article class="markdown">
  {{ .Content | replaceRE "href=\"([^.]+)\\.md(#.+)?\"" "href=\"../$1$2\"" | replaceRE "\t" "    " | safeHTML }}
</article>
{{ end }}

{{ define "toc" }}
  {{ partial "docs/toc" . }}
{{ end }}
